package com.zyz.E_面向对象.I_继承.supper关键字;

/**
 * @author: vick
 * @Date: 2025/3/16
 * @Description:
 * @version: 1.0
 */
public class Person {
    private String name;
    private String age;

    public Person() {
        System.out.println("父类的无参");
    }

    public Person(String name, String age) {
        System.out.println("父类的有参");
        this.name = name;
        this.age = age;
    }

    public void eat() {
        System.out.println("Person吃饭");
    }
}
